RGB Style [Red Green Blue]

In this, we need to give 3 numbers indicating the amount of red, green, and blue colors respectively required in the mixed color. The range of each color is from 0 to 255. 

Note: rgba(0, 0, 0) is Black color and rgb(255, 255, 255) is White color. 

Syntax:

h1{
color:rgb(0, 255, 0);
}

HTML Color Styles and HSL

HTML color styles offer various ways to specify colors on a webpage. For Example using HSL (Hue, Saturation, Lightness) allows for intuitive color control, where you adjust hue for the type of color, saturation for intensity, and lightness for brightness. Here are the different styles that can be used to create new colors by the combination of different colors.

Table of Content

  • Hexadecimal Style
  • RGB Style
  • RGBA Style
  • HSL Color
  • HSLA Color

Similar Reads

Hexadecimal Style:

In this style, we define the color in 6-digit hexadecimal numbers (from 0 to F). It is denoted by ‘#’. The first two digits indicate red color, the next two green color, and the last two blue color....

RGB Style [Red Green Blue]:

In this, we need to give 3 numbers indicating the amount of red, green, and blue colors respectively required in the mixed color. The range of each color is from 0 to 255....

RGBA Style [Red Green Blue Alpha]:

This style allows us to make the color transparent according to our will. Alpha indicates the degree of transparency. The range of green, blue, and red is from 0 to 255 and that of alpha is from 0 to 1....

HSL colors:

Here ‘H’ stands for hue, ‘S’ for Saturation, and ‘L’ for Lightness. HSL color values are specified as:...

HSLA Color Values:

HSLA color values are extensions Of HSL color values, with an Alpha Channel added. Where Alpha denotes the Opacity of a color...

Supported Browser:

...